//
//  KSAboutAppHeadTableViewCell.swift
//  Supermarket
//
//  Created by Black_Crystal on 2017/9/21.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

class KSAboutAppHeadTableViewCell: UITableViewCell {
    
    var backImage = UIImageView()
    var versionLabel = UILabel()
    var lineView = UIView()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        backImage.image = UIImage.init(named: "Account_Logo")
        self.contentView.addSubview(backImage)
        backImage.snp.makeConstraints { (make) in
            make.top.equalTo(self.contentView).offset(30)
            make.height.equalTo(62)
            make.width.equalTo(184)
            make.centerX.equalTo(self.contentView)
        }
        
        versionLabel.text = "版本号 V\(Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String)"
        versionLabel.textColor = KSColor.kColor_9
        self.contentView.addSubview(versionLabel)
        versionLabel.snp.makeConstraints { (make) in
            make.bottom.equalTo(self.contentView.snp.bottom).offset(-40)
            make.centerX.equalTo(self.contentView)
        }
 
        lineView.backgroundColor = KSColor.kColor_line
        self.contentView.addSubview(lineView)
        lineView.snp.makeConstraints { (make) in
            make.height.equalTo(10)
            make.bottom.equalTo(self.contentView.snp.bottom).offset(0)
            make.left.right.equalTo(0)
        }
    }
    
    

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

    
    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
